package com.qiyeji.real_estate.utils;

public enum ResultCode {
    SUCCESS(0,"成功"),
    ERROR(-1,"失败"),
    /* 参数错误 */
    PASSWORDERROR(-1, "密码错误！"),
    USERNAMEERROR(-1, "用户不存在！"),
    NOHISTORICTASK(-1, "没有已完成的任务！"),
    EXISTPCODE(-1, "该项目编号已存在！"),
    NOTASKS(-1, "没有未完成的任务！"),
    NORECORD(-1, "没有任何关于此的记录！"),
    PARAMETER_ERROR(101,"参数错误")
    ;


    private Integer code;
    private String msg;


    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer code() {
        return code;
    }

    public String msg() {
        return msg;
    }

}
